package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * <p>
 * 出库单明细
 * </p>
 *
 * @author LEO
 * @since 2020-08-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wms_outbound_item")
@ApiModel(value="OutboundItem对象", description="出库单明细")
public class OutboundItem extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "所属机构")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "出库单号")
    @TableField("outbound_code")
    private String outboundCode;

    @ApiModelProperty(value = "拣货单明细标识")
    @TableField("picking_item_code")
    private String pickingItemCode;

    @ApiModelProperty(value = "拣货确认单标识")
    @TableField("picking_register_code")
    private String pickingRegisterCode;

    @ApiModelProperty(value = "出货分配标识")
    @TableField("delivery_distribution_code")
    private String deliveryDistributionCode;

    @ApiModelProperty(value = "出货明细标识")
    @TableField("delivery_item_code")
    private String deliveryItemCode;

    @ApiModelProperty(value = "来源单明细标识,便于回填信息")
    @TableField("source_item_code")
    private String sourceItemCode;

    @ApiModelProperty(value = "商品编码code")
    @TableField("goods_code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    @TableField("good_code")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "商品条码")
    @TableField("goods_bar_code")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品规格")
    @TableField("spec")
    private String spec;

    @ApiModelProperty(value = "保质期（天）")
    @TableField("expiration_quantity")
    private BigDecimal expirationQuantity;

    @ApiModelProperty(value = "单位")
    @TableField("goods_unit")
    private String goodsUnit;

    @ApiModelProperty(value = "单位名称")
    @TableField("goods_unit_name")
    private String goodsUnitName;

    @ApiModelProperty(value = "基本单位")
    @TableField("basic_unit")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    @TableField("basic_unit_name")
    private String basicUnitName;

    @ApiModelProperty(value = "基本单位转换数量")
    @TableField("basic_quantity")
    private BigDecimal basicQuantity;

    @ApiModelProperty(value = "库存批次号")
    @TableField("lot")
    private String lot;

    @ApiModelProperty(value = "收货批次号")
    @TableField("receive_lot")
    private String receiveLot;

    @ApiModelProperty(value = "库存状态")
    @TableField("goods_status")
    private String goodsStatus;

    @ApiModelProperty(value = "货品状态名称")
    @TableField("goods_status_name")
    private String goodsStatusName;

    @ApiModelProperty(value = "仓库")
    @TableField("warehouse_code")
    private String warehouseCode;

    @ApiModelProperty(value = "库区")
    @TableField("warehouse_space_code")
    private String warehouseSpaceCode;

    @ApiModelProperty(value = "分配库位")
    @TableField("location")
    private String location;

    @ApiModelProperty(value = "计划数量")
    @TableField("plan_quantity")
    private BigDecimal planQuantity;

    @ApiModelProperty(value = "复核数量（基本单位）")
    @TableField("recheck_quantity")
    private BigDecimal recheckQuantity;

    @ApiModelProperty(value = "复核数量（非基本单位）")
    @TableField("recheck_unit_quantity")
    private BigDecimal recheckUnitQuantity;

    @ApiModelProperty(value = "退减数量")
    @TableField("return_quantity")
    private BigDecimal returnQuantity;

    @ApiModelProperty(value = "出库数量（基本单位）")
    @TableField("outbound_quantity")
    private BigDecimal outboundQuantity;

    @ApiModelProperty(value = "出库数量（非基本单位）")
    @TableField("outbound_unit_quantity")
    private BigDecimal outboundUnitQuantity;

    @ApiModelProperty(value = "生产日期")
    @TableField("gmt_manufacture")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @TableField("gmt_expire")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @TableField("gmt_stock")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "供应商")
    @TableField("supplier")
    private String supplier;

    @ApiModelProperty(value = "序列号")
    @TableField("serial_number")
    private String serialNumber;

    @ApiModelProperty(value = "扩展1")
    @TableField("extend_one")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    @TableField("extend_two")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    @TableField("extend_three")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    @TableField("extend_four")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    @TableField("extend_five")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    @TableField("extend_six")
    private LocalDateTime extendSix;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "任务号")
    @TableField("task_code")
    private String taskCode;

    @ApiModelProperty(value = "作业人编码")
    @TableField("operator_by")
    private String operatorBy;

    @ApiModelProperty(value = "作业人名称")
    @TableField("operator_name")
    private String operatorName;

    @ApiModelProperty(value = "容器号")
    @TableField("container_bar_code")
    private String containerBarCode;

    @ApiModelProperty(value = "容器号类型")
    @TableField("container_type")
    private Integer containerType;

    @ApiModelProperty(value = "库存编码")
    @TableField("inventory_code")
    private String inventoryCode;

    @ApiModelProperty(value = "复核状态;0:未复核；1：复核中；2：已复核；")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "库存是否锁定；从库存中带过来的")
    @TableField("is_lock")
    private Integer isLock;

    @ApiModelProperty(value = "库存容器号，从库存中带出，由于周转箱号不会保存到库存中，所以这个字段有值则说明是托盘号；")
    @TableField("inventory_container_bar_code")
    private String inventoryContainerBarCode;

    @ApiModelProperty(value = "oms销售单明细code")
    @TableField("sale_item_code")
    private String saleItemCode;

    @ApiModelProperty(value = "库存商品是否可发货；0：是；1：否；")
    @TableField("is_consignment")
    private String isConsignment;

    @ApiModelProperty(value = "波次单号")
    @TableField("wave_picking_code")
    private String wavePickingCode;

    @ApiModelProperty(value = "波次临时标识")
    @TableField("temporary_code")
    private String temporaryCode;

    @ApiModelProperty(value = "库存表带的原库存编码")
    @TableField("old_inventory_code")
    private String oldInventoryCode;

    @ApiModelProperty(value = "复核缺货数量")
    @TableField("recheck_refund_quantity")
    private BigDecimal recheckRefundQuantity;

    @ApiModelProperty(value = "订单排序")
    @TableField("order_num")
    private Integer orderNum;
}
